package com.ky.gp.app.service;

import com.ky.common.param.OrderAdd;
import com.ky.common.vo.R;
import com.ky.gp.app.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "gp-course-server", configuration = OpenFeignConfig.class)
public interface OrderFeign {
    @RequestMapping("/course/orders/findAllOrders")
    R findAllOrders();
    @RequestMapping("/course/orders/findAllOrderByType")
    R findAllOrders1(@RequestParam(value = "status")Integer type);
    @RequestMapping("/course/orders/createOrder")
    R createOrder(@RequestBody OrderAdd orderAdd);

}
